﻿using DbHelper.Enity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DbHelper.DbFactory
{
    class MysqlUser : IUser
    {
        private MySqlTool mysqlTool = null;
        public MysqlUser()
        {
            this.mysqlTool = new MySqlTool();
        }

        /// <summary>
        /// 查询信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetInfoAll()
        {
            string sql = "select * from tb_user";
            return this.mysqlTool.ExecuteDataTable(sql);
        }
    }
}
